package com.weasing.res.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.weasing.res.dao.IWxEvalrecordDao;
import com.weasing.res.dao.base.impl.BaseDaoImpl;
import com.weasing.res.domain.WxEvalrecord;

@Repository
public class WxEvalrecordDaoImpl extends BaseDaoImpl<WxEvalrecord> implements
		IWxEvalrecordDao {

	/**
	 * 根据评估表 联查分数值和问题
	 * 
	 */
	public List findByDetail(Integer detailId) {
		String hql = "SELECT q.qgroupname,e.scores FROM WxEvalrecord e  "
				+ ",WxQgrouplist q "
				+ "WHERE e.qgroupid = q.id AND e.udetailid = ?";
		return this.getHibernateTemplate()
				.find(hql, detailId);
	}
}
